package com.dnapipeline.modelManage.entity;

import javax.persistence.*;
import java.util.List;

@Entity
public class DeviceModel {

    @Id
    private String deviceKey; // 主键

    private String deviceName;
    private String deviceNetwork;

    @Lob
    private String profileJson;


    public DeviceModel() {
        // 按照设计要求默认生成deviceKey，使用Math.random().toString()方式生成
        this.deviceKey = Double.toString(Math.random());
    }

    // getter和setter
    public String getDeviceKey() {
        return deviceKey;
    }

    public void setDeviceKey(String deviceKey) {
        this.deviceKey = deviceKey;
    }

    public String getDeviceName() {
        return deviceName;
    }

    public void setDeviceName(String deviceName) {
        this.deviceName = deviceName;
    }

    public String getDeviceNetwork() {
        return deviceNetwork;
    }

    public void setDeviceNetwork(String deviceNetwork) {
        this.deviceNetwork = deviceNetwork;
    }

    public String getProfileJson() {
        return profileJson;
    }

    public void setProfileJson(String profileJson) {
        this.profileJson = profileJson;
    }

}